<?php require_once('Connections/connection.php'); ?>
<?php
$id_galleria = $_GET['id_galleria'];

mysql_select_db($database_setroma, $setroma);
$query_oggetti = "SELECT * FROM Immagini where id_galleria=".$id_galleria;
$oggetti = mysql_query($query_oggetti, $setroma) or die(mysql_error());
$row = mysql_fetch_assoc($oggetti);
$totalRows = mysql_num_rows($oggetti);
?>
<photos>
  <?php do { ?>	
	<photo desc="<?php echo $row['Titolo']; ?>" url="userfiles/galleries/<?php echo $row['Path']; ?>" />	
 <?php } while ($row = mysql_fetch_assoc($oggetti)); ?>
</photos>
<?php
mysql_free_result($oggetti);
?>
